package com.michael.study.arouter.service;

import android.content.Context;
import android.widget.Toast;

import com.alibaba.android.arouter.facade.annotation.Route;
import com.alibaba.android.arouter.facade.template.IProvider;
import com.michael.study.arouter.RoutePath;

/**
 * Description:
 *
 * <p>Created by liuguoquan on 2020/8/5 12:14.
 */
@Route(path = RoutePath.TEST_SERVICE_HELLO_2)
public class HelloServiceImpl2 implements HelloService {

    private Context mContext;

    @Override
    public void sayHello(String name) {
        Toast.makeText(mContext, name +" just do it", Toast.LENGTH_SHORT).show();
    }

    @Override
    public void init(Context context) {
        this.mContext = context;
    }
}
